import QtQuick 2.15
import QtQuick.Controls 2.15

Dialog {
    id: root
    title: "更新错误"
    modal: true
    standardButtons: Dialog.Ok
    implicitWidth: 400
    implicitHeight: 200
    
    property string text: ""
    
    function open() {
        visible = true
    }
    
    function close() {
        visible = false
    }
    
    ScrollView {
        anchors.fill: parent
        clip: true
        
        Label {
            width: root.width - 40 // 留出边距
            text: root.text
            wrapMode: Text.WordWrap
        }
    }
} 